<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <base href="${request.contextPath}/"/>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand”/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <link rel="icon" href="favicon.ico">

    <title>公司添加|凌之迅信息|快速开发平台|Learun敏捷开发框架</title>
    <link href="Content/font/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="Content/bootstrap/bootstrap.min.css" rel="stylesheet"/>
    <link href="Content/view/form.css" rel="stylesheet"/>

    <style>
        textarea{
            margin:0px; width: 620px; height: 58px;
        }
    </style>
    <script src="Content/jquery/jquery-1.10.2.min.js"></script>
    <script src="Content/jquery/jquery.md5.min.js"></script>
    <script src="Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
    <script src="Content/laydate/laydate.js"></script>

    <script src="Content/ueditor/ueditor.config.js"></script>
    <script src="Content/ueditor/ueditor.all.min.js"></script>
    <script src="Content/ueditor/lang/zh-cn/zh-cn.js"></script>

    <!--[if lt IE 9]>
    <script src="~/Content/bootstrap/html5shiv.min.js"></script>
    <script src="~/Content/bootstrap/respond.min.js"></script>
    <![endif]-->

    <script>
        //   *LaoNa* 写后台的地址，底下直接饮用
        var controlUrl = '/pccontrol/home/life/guidance';

        function request(d) {
            for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
                var b = c[a].split("=");
                if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1])
            }
            return ""
        };
    </script>

</head>

<body class="Firefox 63.0 lr-uitheme-default">
<div id="lr_form_bg" class="lr-form-bg">
</div>


<div class="lr-form-wrap" id="form">
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">办事指南<font face="宋体">*</font></div>
        <input id="guide" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">机构<font face="宋体">*</font>
        </div>
        <div id="area" class="col-xs-12 lr-form-area">
            <div id="organization"  class="col-xs-12" isvalid="yes" checkexpession="NotNull"></div>
        </div>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">所需材料<font face="宋体">*</font>
        </div>
        <textarea id="material" name="所需材料" rows="1" cols="10" ></textarea>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">办理依据<font face="宋体">*</font>
        </div>
        <textarea id="according" name="办理依据" value="文本域默认值" rows="5" cols="5"></textarea>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">办理程序<font face="宋体">*</font></div>
        <textarea id="tprocedure" name="办理程序" value="文本域默认值" rows="5" cols="5"></textarea>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">办理期限<font face="宋体">*</font></div>
        <input id="time" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">收费标准<font face="宋体">*</font>
        </div>
        <input id="charge" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>

    </div>
    <center>
        <div class="" style="width: 90%;height: 300px;" id="container">
        </div>
    </center>
</div>

<script>
    var acceptClick;
    var keyValue = "";
    var flag;

    var bootstrap = function (a, b) {
        var d = b.frameTab.currentIframe().selectedRow;
        flag = b.frameTab.currentIframe().flag;
        var c = {
            init: function () {
                c.bind();
                c.initData()
            },
            bind: function () {
                a("#organization").lrDataItemSelect({
                    code: "organization",
                });

            },
            initData: function () {
                if (!!d) {
                    keyValue = d.id;
                    a("#form").lrSetFormData(d);
                    window.maplon = d.lon;
                    window.maplat = d.lat;

                }
                if (flag == "query") {
                    $("#organization").prop("readonly", "readonly");
                    $("#material").prop("readonly", "readonly");
                    $("#according").prop("readonly", "readonly");
                    $("#tprocedure").prop("readonly", "readonly");
                    $("#time").prop("readonly", "readonly");
                    $("#charge").prop("readonly", "readonly");
                    marker.disableDragging();
                }
            }
        };
        acceptClick = function (e) {
            if (!a("#form").lrValidform()) {
                return false
            }
            var f = a("#form").lrGetFormData(keyValue);
            if (f.parentId == "" || f.parentId == "&nbsp;") {
                f.parentId = "0"
            }
            f.nature = "Circulationsolicit"
            a.lrSaveForm(top.$.rootUrl + controlUrl + "/SaveForm?keyValue=" + keyValue, f, function (g) {
                if (!!e) {
                    e()
                }
            })
        };
        c.init()
    };
</script>
<script src="Content/view/form.js"></script>
</body>

</html>